package com.tuishan.myapplication.Model;

import java.util.Objects;

/**
 * <pre>
 *     time   : 2021/04/17
 *     desc   :
 *     version: 1.0
 * </pre>
 */

public class UserLogModel {
    private int source; // 日志类型：1登录 2交易 3安全操作
    private int result;  // 结果
    private int createTime;
    private int updateTime;
    private int pageNum;
    private  int id;

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (this.getClass() == obj.getClass()) {
            return true;
        }
        UserLogModel concert = (UserLogModel) obj;
        return Objects.equals(source, concert.source) &&
                Objects.equals(createTime, concert.createTime)
                && Objects.equals(result, concert.result)
                  && Objects.equals(id, concert.id);
    }


}
